3.14 \(\int \frac{(a+b x^2) (c+d x^2)^2}{(e+f x^2)^3} \, dx\)

Optimal. Leaf size=207 \[ -\frac{\tan ^{-1}\left (\frac{\sqrt{f} x}{\sqrt{e}}\right ) \left (b e \left (-c^2 f^2-6 c d e f+15 d^2 e^2\right )-a f \left (3 c^2 f^2+2 c d e f+3 d^2 e^2\right )\right )}{8 e^{5/2} f^{7/2}}-\frac{x \left (c+d x^2\right ) (b e (5 d e-c f)-a f (3 c f+d e))}{8 e^2 f^2 \left (e+f x^2\right )}+\frac{d x (b e (15 d e-c f)-3 a f (c f+d e))}{8 e^2 f^3}-\frac{x \left (c+d x^2\right )^2 (b e-a f)}{4 e f \left (e+f x^2\right )^2} \]

[Out]

(d*(b*e*(15*d*e - c*f) - 3*a*f*(d*e + c*f))*x)/(8*e^2*f^3) - ((b*e - a*f)*x*(c + d*x^2)^2)/(4*e*f*(e + f*x^2)^
2) - ((b*e*(5*d*e - c*f) - a*f*(d*e + 3*c*f))*x*(c + d*x^2))/(8*e^2*f^2*(e + f*x^2)) - ((b*e*(15*d^2*e^2 - 6*c
*d*e*f - c^2*f^2) - a*f*(3*d^2*e^2 + 2*c*d*e*f + 3*c^2*f^2))*ArcTan[(Sqrt[f]*x)/Sqrt[e]])/(8*e^(5/2)*f^(7/2))

________________________________________________________________________________________

Rubi [A]  time = 0.238958, antiderivative size = 207, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 3, integrand size = 26, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.115, Rules used = {526, 388, 205} \[ -\frac{\tan ^{-1}\left (\frac{\sqrt{f} x}{\sqrt{e}}\right ) \left (b e \left (-c^2 f^2-6 c d e f+15 d^2 e^2\right )-a f \left (3 c^2 f^2+2 c d e f+3 d^2 e^2\right )\right )}{8 e^{5/2} f^{7/2}}-\frac{x \left (c+d x^2\right ) (b e (5 d e-c f)-a f (3 c f+d e))}{8 e^2 f^2 \left (e+f x^2\right )}+\frac{d x (b e (15 d e-c f)-3 a f (c f+d e))}{8 e^2 f^3}-\frac{x \left (c+d x^2\right )^2 (b e-a f)}{4 e f \left (e+f x^2\right )^2} \]

Antiderivative was successfully verified.

[In]

Int[((a + b*x^2)*(c + d*x^2)^2)/(e + f*x^2)^3,x]

[Out]

(d*(b*e*(15*d*e - c*f) - 3*a*f*(d*e + c*f))*x)/(8*e^2*f^3) - ((b*e - a*f)*x*(c + d*x^2)^2)/(4*e*f*(e + f*x^2)^
2) - ((b*e*(5*d*e - c*f) - a*f*(d*e + 3*c*f))*x*(c + d*x^2))/(8*e^2*f^2*(e + f*x^2)) - ((b*e*(15*d^2*e^2 - 6*c
*d*e*f - c^2*f^2) - a*f*(3*d^2*e^2 + 2*c*d*e*f + 3*c^2*f^2))*ArcTan[(Sqrt[f]*x)/Sqrt[e]])/(8*e^(5/2)*f^(7/2))

Rule 526

Int[((a_) + (b_.)*(x_)^(n_))^(p_)*((c_) + (d_.)*(x_)^(n_))^(q_.)*((e_) + (f_.)*(x_)^(n_)), x_Symbol] :> -Simp[
((b*e - a*f)*x*(a + b*x^n)^(p + 1)*(c + d*x^n)^q)/(a*b*n*(p + 1)), x] + Dist[1/(a*b*n*(p + 1)), Int[(a + b*x^n
)^(p + 1)*(c + d*x^n)^(q - 1)*Simp[c*(b*e*n*(p + 1) + b*e - a*f) + d*(b*e*n*(p + 1) + (b*e - a*f)*(n*q + 1))*x
^n, x], x], x] /; FreeQ[{a, b, c, d, e, f, n}, x] && LtQ[p, -1] && GtQ[q, 0]

Rule 388

Int[((a_) + (b_.)*(x_)^(n_))^(p_)*((c_) + (d_.)*(x_)^(n_)), x_Symbol] :> Simp[(d*x*(a + b*x^n)^(p + 1))/(b*(n*
(p + 1) + 1)), x] - Dist[(a*d - b*c*(n*(p + 1) + 1))/(b*(n*(p + 1) + 1)), Int[(a + b*x^n)^p, x], x] /; FreeQ[{
a, b, c, d, n}, x] && NeQ[b*c - a*d, 0] && NeQ[n*(p + 1) + 1, 0]

Rule 205

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(Rt[a/b, 2]*ArcTan[x/Rt[a/b, 2]])/a, x] /; FreeQ[{a, b}, x]
&& PosQ[a/b]

Rubi steps

\begin{align*} \int \frac{\left (a+b x^2\right ) \left (c+d x^2\right )^2}{\left (e+f x^2\right )^3} \, dx &=-\frac{(b e-a f) x \left (c+d x^2\right )^2}{4 e f \left (e+f x^2\right )^2}-\frac{\int \frac{\left (c+d x^2\right ) \left (-c (b e+3 a f)-d (5 b e-a f) x^2\right )}{\left (e+f x^2\right )^2} \, dx}{4 e f}\\ &=-\frac{(b e-a f) x \left (c+d x^2\right )^2}{4 e f \left (e+f x^2\right )^2}-\frac{(b e (5 d e-c f)-a f (d e+3 c f)) x \left (c+d x^2\right )}{8 e^2 f^2 \left (e+f x^2\right )}+\frac{\int \frac{-c (a f (d e-3 c f)-b e (5 d e+c f))+d (b e (15 d e-c f)-3 a f (d e+c f)) x^2}{e+f x^2} \, dx}{8 e^2 f^2}\\ &=\frac{d (b e (15 d e-c f)-3 a f (d e+c f)) x}{8 e^2 f^3}-\frac{(b e-a f) x \left (c+d x^2\right )^2}{4 e f \left (e+f x^2\right )^2}-\frac{(b e (5 d e-c f)-a f (d e+3 c f)) x \left (c+d x^2\right )}{8 e^2 f^2 \left (e+f x^2\right )}-\frac{\left (b e \left (15 d^2 e^2-6 c d e f-c^2 f^2\right )-a f \left (3 d^2 e^2+2 c d e f+3 c^2 f^2\right )\right ) \int \frac{1}{e+f x^2} \, dx}{8 e^2 f^3}\\ &=\frac{d (b e (15 d e-c f)-3 a f (d e+c f)) x}{8 e^2 f^3}-\frac{(b e-a f) x \left (c+d x^2\right )^2}{4 e f \left (e+f x^2\right )^2}-\frac{(b e (5 d e-c f)-a f (d e+3 c f)) x \left (c+d x^2\right )}{8 e^2 f^2 \left (e+f x^2\right )}-\frac{\left (b e \left (15 d^2 e^2-6 c d e f-c^2 f^2\right )-a f \left (3 d^2 e^2+2 c d e f+3 c^2 f^2\right )\right ) \tan ^{-1}\left (\frac{\sqrt{f} x}{\sqrt{e}}\right )}{8 e^{5/2} f^{7/2}}\\ \end{align*}

Mathematica [A]  time = 0.127148, size = 183, normalized size = 0.88 \[ -\frac{\tan ^{-1}\left (\frac{\sqrt{f} x}{\sqrt{e}}\right ) \left (b e \left (-c^2 f^2-6 c d e f+15 d^2 e^2\right )-a f \left (3 c^2 f^2+2 c d e f+3 d^2 e^2\right )\right )}{8 e^{5/2} f^{7/2}}+\frac{x (d e-c f) (b e (9 d e-c f)-a f (3 c f+5 d e))}{8 e^2 f^3 \left (e+f x^2\right )}-\frac{x (b e-a f) (d e-c f)^2}{4 e f^3 \left (e+f x^2\right )^2}+\frac{b d^2 x}{f^3} \]

Antiderivative was successfully verified.

[In]

Integrate[((a + b*x^2)*(c + d*x^2)^2)/(e + f*x^2)^3,x]

[Out]

(b*d^2*x)/f^3 - ((b*e - a*f)*(d*e - c*f)^2*x)/(4*e*f^3*(e + f*x^2)^2) + ((d*e - c*f)*(b*e*(9*d*e - c*f) - a*f*
(5*d*e + 3*c*f))*x)/(8*e^2*f^3*(e + f*x^2)) - ((b*e*(15*d^2*e^2 - 6*c*d*e*f - c^2*f^2) - a*f*(3*d^2*e^2 + 2*c*
d*e*f + 3*c^2*f^2))*ArcTan[(Sqrt[f]*x)/Sqrt[e]])/(8*e^(5/2)*f^(7/2))

________________________________________________________________________________________

Maple [B]  time = 0.011, size = 397, normalized size = 1.9 \begin{align*}{\frac{b{d}^{2}x}{{f}^{3}}}+{\frac{3\,f{x}^{3}a{c}^{2}}{8\, \left ( f{x}^{2}+e \right ) ^{2}{e}^{2}}}+{\frac{{x}^{3}acd}{4\, \left ( f{x}^{2}+e \right ) ^{2}e}}-{\frac{5\,{x}^{3}a{d}^{2}}{8\,f \left ( f{x}^{2}+e \right ) ^{2}}}+{\frac{{x}^{3}b{c}^{2}}{8\, \left ( f{x}^{2}+e \right ) ^{2}e}}-{\frac{5\,{x}^{3}bcd}{4\,f \left ( f{x}^{2}+e \right ) ^{2}}}+{\frac{9\,{x}^{3}b{d}^{2}e}{8\,{f}^{2} \left ( f{x}^{2}+e \right ) ^{2}}}+{\frac{5\,ax{c}^{2}}{8\, \left ( f{x}^{2}+e \right ) ^{2}e}}-{\frac{acdx}{4\,f \left ( f{x}^{2}+e \right ) ^{2}}}-{\frac{3\,a{d}^{2}ex}{8\,{f}^{2} \left ( f{x}^{2}+e \right ) ^{2}}}-{\frac{b{c}^{2}x}{8\,f \left ( f{x}^{2}+e \right ) ^{2}}}-{\frac{3\,bcdex}{4\,{f}^{2} \left ( f{x}^{2}+e \right ) ^{2}}}+{\frac{7\,b{d}^{2}{e}^{2}x}{8\,{f}^{3} \left ( f{x}^{2}+e \right ) ^{2}}}+{\frac{3\,a{c}^{2}}{8\,{e}^{2}}\arctan \left ({fx{\frac{1}{\sqrt{ef}}}} \right ){\frac{1}{\sqrt{ef}}}}+{\frac{acd}{4\,ef}\arctan \left ({fx{\frac{1}{\sqrt{ef}}}} \right ){\frac{1}{\sqrt{ef}}}}+{\frac{3\,a{d}^{2}}{8\,{f}^{2}}\arctan \left ({fx{\frac{1}{\sqrt{ef}}}} \right ){\frac{1}{\sqrt{ef}}}}+{\frac{b{c}^{2}}{8\,ef}\arctan \left ({fx{\frac{1}{\sqrt{ef}}}} \right ){\frac{1}{\sqrt{ef}}}}+{\frac{3\,bcd}{4\,{f}^{2}}\arctan \left ({fx{\frac{1}{\sqrt{ef}}}} \right ){\frac{1}{\sqrt{ef}}}}-{\frac{15\,b{d}^{2}e}{8\,{f}^{3}}\arctan \left ({fx{\frac{1}{\sqrt{ef}}}} \right ){\frac{1}{\sqrt{ef}}}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((b*x^2+a)*(d*x^2+c)^2/(f*x^2+e)^3,x)

[Out]

b*d^2/f^3*x+3/8*f/(f*x^2+e)^2/e^2*x^3*a*c^2+1/4/(f*x^2+e)^2/e*x^3*a*c*d-5/8/f/(f*x^2+e)^2*x^3*a*d^2+1/8/(f*x^2
+e)^2/e*x^3*b*c^2-5/4/f/(f*x^2+e)^2*x^3*b*c*d+9/8/f^2/(f*x^2+e)^2*x^3*b*d^2*e+5/8/(f*x^2+e)^2/e*x*a*c^2-1/4/f/
(f*x^2+e)^2*a*c*d*x-3/8/f^2/(f*x^2+e)^2*a*d^2*e*x-1/8/f/(f*x^2+e)^2*b*c^2*x-3/4/f^2/(f*x^2+e)^2*b*c*d*e*x+7/8/
f^3/(f*x^2+e)^2*b*d^2*e^2*x+3/8/e^2/(e*f)^(1/2)*arctan(x*f/(e*f)^(1/2))*a*c^2+1/4/f/e/(e*f)^(1/2)*arctan(x*f/(
e*f)^(1/2))*a*c*d+3/8/f^2/(e*f)^(1/2)*arctan(x*f/(e*f)^(1/2))*a*d^2+1/8/f/e/(e*f)^(1/2)*arctan(x*f/(e*f)^(1/2)
)*b*c^2+3/4/f^2/(e*f)^(1/2)*arctan(x*f/(e*f)^(1/2))*b*c*d-15/8/f^3*e/(e*f)^(1/2)*arctan(x*f/(e*f)^(1/2))*b*d^2

________________________________________________________________________________________

Maxima [F(-2)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x^2+a)*(d*x^2+c)^2/(f*x^2+e)^3,x, algorithm="maxima")

[Out]

Exception raised: ValueError

________________________________________________________________________________________

Fricas [A]  time = 1.5857, size = 1613, normalized size = 7.79 \begin{align*} \text{result too large to display} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x^2+a)*(d*x^2+c)^2/(f*x^2+e)^3,x, algorithm="fricas")

[Out]

[1/16*(16*b*d^2*e^3*f^3*x^5 + 2*(25*b*d^2*e^4*f^2 + 3*a*c^2*e*f^5 - 5*(2*b*c*d + a*d^2)*e^3*f^3 + (b*c^2 + 2*a
*c*d)*e^2*f^4)*x^3 + (15*b*d^2*e^5 - 3*a*c^2*e^2*f^3 - 3*(2*b*c*d + a*d^2)*e^4*f - (b*c^2 + 2*a*c*d)*e^3*f^2 +
 (15*b*d^2*e^3*f^2 - 3*a*c^2*f^5 - 3*(2*b*c*d + a*d^2)*e^2*f^3 - (b*c^2 + 2*a*c*d)*e*f^4)*x^4 + 2*(15*b*d^2*e^
4*f - 3*a*c^2*e*f^4 - 3*(2*b*c*d + a*d^2)*e^3*f^2 - (b*c^2 + 2*a*c*d)*e^2*f^3)*x^2)*sqrt(-e*f)*log((f*x^2 - 2*
sqrt(-e*f)*x - e)/(f*x^2 + e)) + 2*(15*b*d^2*e^5*f + 5*a*c^2*e^2*f^4 - 3*(2*b*c*d + a*d^2)*e^4*f^2 - (b*c^2 +
2*a*c*d)*e^3*f^3)*x)/(e^3*f^6*x^4 + 2*e^4*f^5*x^2 + e^5*f^4), 1/8*(8*b*d^2*e^3*f^3*x^5 + (25*b*d^2*e^4*f^2 + 3
*a*c^2*e*f^5 - 5*(2*b*c*d + a*d^2)*e^3*f^3 + (b*c^2 + 2*a*c*d)*e^2*f^4)*x^3 - (15*b*d^2*e^5 - 3*a*c^2*e^2*f^3
- 3*(2*b*c*d + a*d^2)*e^4*f - (b*c^2 + 2*a*c*d)*e^3*f^2 + (15*b*d^2*e^3*f^2 - 3*a*c^2*f^5 - 3*(2*b*c*d + a*d^2
)*e^2*f^3 - (b*c^2 + 2*a*c*d)*e*f^4)*x^4 + 2*(15*b*d^2*e^4*f - 3*a*c^2*e*f^4 - 3*(2*b*c*d + a*d^2)*e^3*f^2 - (
b*c^2 + 2*a*c*d)*e^2*f^3)*x^2)*sqrt(e*f)*arctan(sqrt(e*f)*x/e) + (15*b*d^2*e^5*f + 5*a*c^2*e^2*f^4 - 3*(2*b*c*
d + a*d^2)*e^4*f^2 - (b*c^2 + 2*a*c*d)*e^3*f^3)*x)/(e^3*f^6*x^4 + 2*e^4*f^5*x^2 + e^5*f^4)]

________________________________________________________________________________________

Sympy [B]  time = 18.9233, size = 400, normalized size = 1.93 \begin{align*} \frac{b d^{2} x}{f^{3}} - \frac{\sqrt{- \frac{1}{e^{5} f^{7}}} \left (3 a c^{2} f^{3} + 2 a c d e f^{2} + 3 a d^{2} e^{2} f + b c^{2} e f^{2} + 6 b c d e^{2} f - 15 b d^{2} e^{3}\right ) \log{\left (- e^{3} f^{3} \sqrt{- \frac{1}{e^{5} f^{7}}} + x \right )}}{16} + \frac{\sqrt{- \frac{1}{e^{5} f^{7}}} \left (3 a c^{2} f^{3} + 2 a c d e f^{2} + 3 a d^{2} e^{2} f + b c^{2} e f^{2} + 6 b c d e^{2} f - 15 b d^{2} e^{3}\right ) \log{\left (e^{3} f^{3} \sqrt{- \frac{1}{e^{5} f^{7}}} + x \right )}}{16} + \frac{x^{3} \left (3 a c^{2} f^{4} + 2 a c d e f^{3} - 5 a d^{2} e^{2} f^{2} + b c^{2} e f^{3} - 10 b c d e^{2} f^{2} + 9 b d^{2} e^{3} f\right ) + x \left (5 a c^{2} e f^{3} - 2 a c d e^{2} f^{2} - 3 a d^{2} e^{3} f - b c^{2} e^{2} f^{2} - 6 b c d e^{3} f + 7 b d^{2} e^{4}\right )}{8 e^{4} f^{3} + 16 e^{3} f^{4} x^{2} + 8 e^{2} f^{5} x^{4}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x**2+a)*(d*x**2+c)**2/(f*x**2+e)**3,x)

[Out]

b*d**2*x/f**3 - sqrt(-1/(e**5*f**7))*(3*a*c**2*f**3 + 2*a*c*d*e*f**2 + 3*a*d**2*e**2*f + b*c**2*e*f**2 + 6*b*c
*d*e**2*f - 15*b*d**2*e**3)*log(-e**3*f**3*sqrt(-1/(e**5*f**7)) + x)/16 + sqrt(-1/(e**5*f**7))*(3*a*c**2*f**3
+ 2*a*c*d*e*f**2 + 3*a*d**2*e**2*f + b*c**2*e*f**2 + 6*b*c*d*e**2*f - 15*b*d**2*e**3)*log(e**3*f**3*sqrt(-1/(e
**5*f**7)) + x)/16 + (x**3*(3*a*c**2*f**4 + 2*a*c*d*e*f**3 - 5*a*d**2*e**2*f**2 + b*c**2*e*f**3 - 10*b*c*d*e**
2*f**2 + 9*b*d**2*e**3*f) + x*(5*a*c**2*e*f**3 - 2*a*c*d*e**2*f**2 - 3*a*d**2*e**3*f - b*c**2*e**2*f**2 - 6*b*
c*d*e**3*f + 7*b*d**2*e**4))/(8*e**4*f**3 + 16*e**3*f**4*x**2 + 8*e**2*f**5*x**4)

________________________________________________________________________________________

Giac [A]  time = 1.19987, size = 321, normalized size = 1.55 \begin{align*} \frac{b d^{2} x}{f^{3}} + \frac{{\left (3 \, a c^{2} f^{3} + b c^{2} f^{2} e + 2 \, a c d f^{2} e + 6 \, b c d f e^{2} + 3 \, a d^{2} f e^{2} - 15 \, b d^{2} e^{3}\right )} \arctan \left (\sqrt{f} x e^{\left (-\frac{1}{2}\right )}\right ) e^{\left (-\frac{5}{2}\right )}}{8 \, f^{\frac{7}{2}}} + \frac{{\left (3 \, a c^{2} f^{4} x^{3} + b c^{2} f^{3} x^{3} e + 2 \, a c d f^{3} x^{3} e - 10 \, b c d f^{2} x^{3} e^{2} - 5 \, a d^{2} f^{2} x^{3} e^{2} + 9 \, b d^{2} f x^{3} e^{3} + 5 \, a c^{2} f^{3} x e - b c^{2} f^{2} x e^{2} - 2 \, a c d f^{2} x e^{2} - 6 \, b c d f x e^{3} - 3 \, a d^{2} f x e^{3} + 7 \, b d^{2} x e^{4}\right )} e^{\left (-2\right )}}{8 \,{\left (f x^{2} + e\right )}^{2} f^{3}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x^2+a)*(d*x^2+c)^2/(f*x^2+e)^3,x, algorithm="giac")

[Out]

b*d^2*x/f^3 + 1/8*(3*a*c^2*f^3 + b*c^2*f^2*e + 2*a*c*d*f^2*e + 6*b*c*d*f*e^2 + 3*a*d^2*f*e^2 - 15*b*d^2*e^3)*a
rctan(sqrt(f)*x*e^(-1/2))*e^(-5/2)/f^(7/2) + 1/8*(3*a*c^2*f^4*x^3 + b*c^2*f^3*x^3*e + 2*a*c*d*f^3*x^3*e - 10*b
*c*d*f^2*x^3*e^2 - 5*a*d^2*f^2*x^3*e^2 + 9*b*d^2*f*x^3*e^3 + 5*a*c^2*f^3*x*e - b*c^2*f^2*x*e^2 - 2*a*c*d*f^2*x
*e^2 - 6*b*c*d*f*x*e^3 - 3*a*d^2*f*x*e^3 + 7*b*d^2*x*e^4)*e^(-2)/((f*x^2 + e)^2*f^3)